package com.hxs.hxsserver.enums;

/**
 * 用户藏品状态枚举
 */
public enum UserPoolStatusEnums {
    NORMAL(1,"正常"),
    ON_CONSIGNMENT(2,"寄售中"),
    CONSIGNED(3,"寄售完成"),
    GIVE(4,"赠送"),
    SYNTHESIS(5,"合成"),
    LOTTERY(19,"抽奖"),
    STAKING(20,"质押中"),
    ;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 状态描述
     */
    private String desc;

    UserPoolStatusEnums(Integer status, String desc){
        this.status = status;
        this.desc = desc;
    }

    public static UserPoolStatusEnums getByStatus(Integer status){
        switch (status){
            case 1: return NORMAL;
            case 2: return ON_CONSIGNMENT;
            case 3: return CONSIGNED;
            case 4: return GIVE;
            case 5: return SYNTHESIS;
            case 19: return LOTTERY;
            case 20: return STAKING;
            default: return null;
        }
    }

    public Integer getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }
}
